export interface Env {
    baseUrl: string
}

const betaEnv: Env = {
    baseUrl: "http://127.0.0.1:8000"
}

const masterEnv: Env = {
    baseUrl: "https://xiaotang365.cn"
}

export function getEnv(): Env {
    const mode = process.env.REACT_APP_MODE ?? "beta";
    if (mode === "master") return masterEnv;
    return betaEnv;
}


